#ifndef GUACIMAGE_H_INCLUDED
#define GUACIMAGE_H_INCLUDED

#include "sdl/sdl.h"
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"

int raw_loadpng(lua_State* L);
int raw_loadbmp(lua_State* L);
int raw_loadjpeg(lua_State* L);

#define IMG_FLAG_LOCKED 0x0001

typedef struct {
    unsigned int flags;
    SDL_Surface* surf;
    SDL_Rect* prect;
    SDL_Rect rect;
    double handle_x, handle_y;
} GuacImage;

#endif // GUACIMAGE_H_INCLUDED
